<template>
  <el-menu :default-active="items[0].path" class="el-menu-vertical-demo" router>
    <el-menu-item v-for="item in items" :key="item.path" :index="item.path">
      <span>{{ item.title }}</span>
    </el-menu-item>
  </el-menu>
</template>

<script setup>

const items = [
  {
    title: '首页',
    path: 'welcome'
  },
  {
    title: '柱状图',
    path: 'zhuZhuang'
  },
  {
    title: '折线图',
    path: 'zheXian'
  },
  {
    title: '中国地图',
    path: 'ChinaMap'
  }
]
</script>

<style lang="scss" scoped>
.el-menu {
  min-height: 500px;
}
</style>